package com.example.book_recommend.pojo.storeInfo;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.Random;

/**
 * 自定义分页
 */
public class MyPageSearch {
    @NotNull(message = "页数不能为空")
    private Integer page = 100;
    @NotNull(message = "每页数目不能为空")
    private Integer size = 100;
    private String storeName;
    private ArrayList<Integer> cateIds = new ArrayList<>();
    private String bookId;

    private int uid;

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }


    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public ArrayList<Integer> getCateIds() {
        return cateIds;
    }

    public void setCateIds(ArrayList<Integer> cateIds) {
        this.cateIds = cateIds;
    }



    public MyPageSearch(Integer page, Integer size, String storeName) {
        this.page = page;
        this.size = size;
        this.storeName = storeName;
        if(this.storeName==null){
            this.storeName="";
        }
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }
}